<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var arr1 = [21,32,42,9,10,39,31,19,2,7,7,4,67,33];
        var arr2 = [5,9,41,89,10,43,41,66,11,71,4,23];
        var max1 = arr1[0];
        var max2 = arr2[0];
        arr1.forEach(function(value,index) {
            if(value > max1) {
                max1 = value;
            }
        });
        arr2.forEach(function(value,index) {
            if(value > max2) {
                max2 = value;
            }
        });
        console.log(max1,max2);
    </script>
</body>
</html>